package com.ojoin.trade.common.utils.file;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class ObjectSaveFileUtils {

	public static File getFile(String filepath, String name) throws IOException {
		File file = new File(filepath);
		if (!file.exists()) {
			file.mkdirs();
		}
		File fileo = new File(filepath + File.separator + name);
		if (!fileo.exists()) {
			fileo.createNewFile();
		}

		return fileo;
	}

}
